﻿using MiniFox.Components;
using MiniFox.Scripting.Configurations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Scripting
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister, SpareComponent(typeof(DefaultScriptingConfigFactory))]
    public interface IScriptingConfigFactory
    {
        /// <summary>
        /// 
        /// </summary>
        IScriptingConfigProvider Configuration { get; }
    }
    /// <summary>
    /// 
    /// </summary>
    public sealed class DefaultScriptingConfigFactory : IScriptingConfigFactory
    {
        /// <summary>
        /// 
        /// </summary>
        [AutoConfigure]
        public ScriptingConfiguration Configuration { get; set; }
        IScriptingConfigProvider IScriptingConfigFactory.Configuration { get => this.Configuration; }
    }
}
